FileSystem remove() MethodFile(path).remove() Folder(path).remove() Description The remove() method of File or Folder deletes the file or folder that this object represents. Folders must be empty before they can be deleted. The return value is true if the file or folder has been deleted. IMPORTANT: The remove() method deletes the referenced file or folder immediately. It does not move the referenced file or folder to the system trash. The effects of the remove method cannot be undone. It is recommended that you prompt the user for permission to delete a file or folder before deleting it. The method does not resolve aliases; it rather deletes the file alias itself. Parameters None. Returns Boolean. |